package com.sinodata.bsm.common.vo;

import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Dimension entity.
 * 
 * @author MyEclipse Persistence Tools
 */
//@Entity
//@Table(name = "DIMENSION")
public class Dimension implements java.io.Serializable {

    // Fields

    private Long id;
    private Long dimensionTypeId;
    private String dimensionName;
    private Long parentId;
    private Long dimensionState;

    // Constructors

    /** default constructor */
    public Dimension() {
    }

    /** minimal constructor */
    public Dimension(Long id, String dimensionName) {
        this.id = id;
        this.dimensionName = dimensionName;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "DIMENSION_SEQ")
    @Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "T_ID", nullable = false, precision = 18, scale = 0)
    public Long getDimensionTypeId() {
        return dimensionTypeId;
    }

    public void setDimensionTypeId(Long dimensionTypeId) {
        this.dimensionTypeId = dimensionTypeId;
    }

    @Column(name = "D_NAME", unique = false, nullable = false, insertable = true, updatable = true, length = 200)
    public String getDimensionName() {
        return dimensionName;
    }

    public void setDimensionName(String dimensionName) {
        this.dimensionName = dimensionName;
    }

    @Column(name = "D_STATE", unique = false, nullable = true, insertable = true, updatable = true, precision = 1, scale = 0)
    public Long getDimensionState() {
        return dimensionState;
    }

    public void setDimensionState(Long dimensionState) {
        this.dimensionState = dimensionState;
    }

    @Column(name = "PARENT_ID", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getParentId() {
        return this.parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

}